
function StringFormat() {
         if (arguments.length == 0)
             return null;
         var str = arguments[0];
         for (var i = 1; i < arguments.length; i++) {
             var re = new RegExp('\\{' + (i - 1) + '\\}', 'gm');
             str = str.replace(re, arguments[i]);
         }
         return str;
     }
String.prototype.endWith = function (s) {
    if (s == null || s == "" || this.length == 0 || s.length > this.length)
        return false;
    if (this.substring(this.length - s.length) == s)
        return true;
    else
        return false;
    return true;
}
String.prototype.startWith = function (s) {
    if (s == null || s == "" || this.length == 0 || s.length > this.length)
        return false;
    if (this.substr(0, s.length) == s)
        return true;
    else
        return false;
    return true;
}
function __ParseUrl__(__url__)
{
	this.next=function()
    {
		if(__url__.startWith(""))
		{
			__url__ = "" + __url__.substring("".length);
		}
		if(__url__.startWith("/Add"))
		{
			__url__ = "/show" + __url__.substring("/Add".length);
		}
		return __url__;
	}
	if(__url__=="")
	{
		__url__ = ""; return this.next();
	}
	if(__url__=="/Index.html")
	{
		__url__ = "/Add"; return this.next();
	}
	return __url__;
}
var Url=new function()
{
		this.DDD_FangChan_Index= function()
        {
            var __url__=StringFormat("/DDD/FangChan/Index.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_IndexController_Index= function(jiage,fangxing,leixing,p)
        {
            var __url__=StringFormat("/DDD/IndexController/Index/{0}/{1}/{2}/{3}26.html",jiage,fangxing,leixing,p);
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_jqui_display= function()
        {
            var __url__=StringFormat("/DDD/jqui/display.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_login_show= function()
        {
            var __url__=StringFormat("/DDD/login/show.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_login_log= function()
        {
            var __url__=StringFormat("/DDD/loginlogin/log");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_login_reg= function(name,pwd)
        {
            var __url__=StringFormat("/DDD/login/reg/{0}/{1}14.html",name,pwd);
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_upload_show= function()
        {
            var __url__=StringFormat("/DDD/upload/show.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_users_show= function(p)
        {
            var __url__=StringFormat("/DDD/users/show/{0}15.html",p);
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_users_edit= function()
        {
            var __url__=StringFormat("/DDD/usersusers/edit.aspx");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_users_insert= function()
        {
            var __url__=StringFormat("/DDD/usersusers/show.aspx");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_users_delete= function(id)
        {
            var __url__=StringFormat("/DDD/users/delete/{0}17.html",id);
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_Public_Success= function(message,url,second)
        {
            var __url__=StringFormat("/DDD/Public/Success/{0}/{1}/{2}19.html",message,url,second);
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_Public_Error= function(message,url,second)
        {
            var __url__=StringFormat("/DDD/Public/Error/{0}/{1}/{2}17.html",message,url,second);
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_Public_Header= function()
        {
            var __url__=StringFormat("/DDD/Public/Header.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_Public_Footer= function()
        {
            var __url__=StringFormat("/DDD/Public/Footer.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_Public_Navigator= function()
        {
            var __url__=StringFormat("/DDD/Public/Navigator.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_Public_KindEditor= function()
        {
            var __url__=StringFormat("/DDD/Public/KindEditor.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_VCode_GetVerifyImage= function()
        {
            var __url__=StringFormat("/DDD/VCode/GetVerifyImage.html");
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };
		this.DDD_VCode_VCheck= function(vcode)
        {
            var __url__=StringFormat("/DDD/VCode/VCheck/{0}17.html",vcode);
			__url__ = __ParseUrl__(__url__);
            return __url__;
        };

}
console.group("版权信息");
console.info("write by lucas");
console.info("qq:348764327");
console.info("<a href=\"http://shang.qq.com/wpa/qunwpa?idkey=099af071ba2689e2ed4003697a514c2b01b8aa001d2cd9718e4819b8da29ef49\">加入QQ群</a>")
console.groupEnd();
console.group("感谢使用NFinal框架");
console.info("http://bbs.nfinal.com");
console.info("http://help.nfinal.com");
console.groupEnd();